package com.gy.hsim.bservice.framework.mq;

import java.io.Serializable;
import java.util.Date;

/**
 * 发送消息对象到队列中，存储消息实体
 * @author guiyi147
 *
 */
public class GYMqEntity implements Serializable{


	private static final long serialVersionUID = 1840224407188258838L;

	
	public GYMqEntity(String fromUid, String toUid, String message){
		super();
		this.fromUid = fromUid;
		this.toUid = toUid;
		this.message = message;
		this.dateTime = new Date();
		
	}
	
	

	/**
	 * 发送用户，去除域名
	 */
	private String fromUid;
	
	/**
	 * 接收用户，去除域名
	 */
	private String toUid;
	
	/**
	 * 发送的消息内容
	 */
	private String  message;
	
	/**
	 * 发送时间
	 */
	private Date dateTime;

	public String getFromUid() {
		return fromUid;
	}

	public void setFromUid(String fromUid) {
		this.fromUid = fromUid;
	}

	public String getToUid() {
		return toUid;
	}

	public void setToUid(String toUid) {
		this.toUid = toUid;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}


	public Date getDateTime() {
		return dateTime;
	}

	public void setDateTime(Date dateTime) {
		this.dateTime = dateTime;
	}

	@Override
	public String toString() {
		return "GYMqEntity [fromUid=" + fromUid + ", toUid=" + toUid
				+ ", message=" + message + ", dateTime=" + dateTime + "]";
	}
	
	
	
}
